package com.sk.rpcAssist.io.protocol;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.OutputStream;
import java.io.Serializable;

/**
 * description：
 *
 * @author 孙文斌
 * @Date: 2021/2/5 14:20
 */
@Data
public class RpcResponse implements Serializable {
    private static final long serialVersionUID = -6854457000506527638L;
    Boolean error;
    Object result;
    Object errorMessage;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
